/**
 * 
 */
//取出传回来的参数error并与yes比较
function getQueryString(name) {
    var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    var r = window.location.search.substr(1).match(reg);
    if (r != null) {
        return unescape(r[2]);
    }
    return null;
}

var errorInfoA = GetQueryString("errorInfo");
var  errorInfo=decodeURI(errorInfoA);
 alert(errorInfoA); 
  
 // 引用 <script src="<%=request.getContextPath() %>/programmer/alertErrorInfo.js" >  </script>